# Copyright 2023 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================

from typing import Any

class AbstractContext:
    def __init__(self, *args, **kwargs) -> None: ...
    def CreateOperation(self, *args, **kwargs) -> Any: ...
    def RegisterFunction(self, arg0) -> None: ...
    def RemoveFunction(self, arg0: str) -> None: ...

class AbstractFunction:
    def __init__(self, *args, **kwargs) -> None: ...

class AbstractOperation:
    def __init__(self, *args, **kwargs) -> None: ...
    def AddInput(self, arg0) -> None: ...
    def DeviceName(self) -> str: ...
    def Execute(self, *args, **kwargs) -> Any: ...
    def Name(self) -> str: ...
    def Reset(self, arg0: str, arg1: str) -> None: ...
    def SetAttrType(self, arg0: str, arg1) -> None: ...
    def SetDeviceName(self, arg0: str) -> None: ...
    def SetOpName(self, arg0: str) -> None: ...

class AbstractTensorHandle:
    def __init__(self, *args, **kwargs) -> None: ...
    def DataType(self, *args, **kwargs) -> Any: ...
    def numpy(self) -> object: ...

class ImmediateExecutionContext(AbstractContext):
    def __init__(self, *args, **kwargs) -> None: ...

class TracingContext(AbstractContext):
    def __init__(self, *args, **kwargs) -> None: ...
    def AddParameter(self, *args, **kwargs) -> Any: ...
    def Finalize(self, *args, **kwargs) -> Any: ...

def EagerContextToImmediateExecutionContext(*args, **kwargs) -> Any: ...
def EagerTensorToImmediateExecutionTensorHandle(arg0: object) -> AbstractTensorHandle: ...
def NewTracingContext(*args, **kwargs) -> Any: ...
def SetTracingImplementation(arg0: str) -> None: ...
